<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="<?php echo $_BASE_DIR?>css/main.css">
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.js"></script>
    <?php 
        $acct = Acct::find('id = ?',$_SESSION['acct']['id'])->getOne();
    ?>
</head>
<body>
<div class="n-content-box">
    <div class="n-content-welcome">
        <img src="<?php echo $_BASE_DIR?>images/icon_welcome.png" alt="">
        <span>欢迎使用<?php echo $_SESSION['acct']['name']?>管理系统</span>
        <button onclick="shouquan();">更新授权</button>
    </div>
    <div style="background-color: #f9f9f9;padding: 24px 55px">
        <div class="n-content-edition">
            当前版本 <span>2.0</span>，最新版本 <span>1.2</span>
            <button onclick="alert('当前已经是最新版本');"> 更新到最新</button>
        </div>
        <div class="n-content-inf">
            <p>
                <img src="<?php echo $_BASE_DIR?>images/icon_inf.png" alt="">
                <span>小程序信息</span>
            </p>
        </div>
        <div class="n-content-img">
            <div class="n-content-img-left">
                <p class="n-content-img-left-title"><?php echo $acct->name?></p>
                <p class="n-content-img-left-id">appID: <span><?php echo $acct->app_id?></span></p>
            </div>
            <div class="n-content-img-right">
                <img src="<?php echo $_BASE_DIR?>images/img-code.png" alt="">
                <img src="<?php echo $_BASE_DIR?>images/img-head.png" alt="">
            </div>
        </div>
        <ul class="n-content-date">
            <li class="n-content-date1">
                <p style="font-size: 30px;font-weight: bold;margin-top: 60px"><?php echo $info['today_user']?></p>
                <p style="font-size: 14px">今日新增用户</p>
            </li>
            <li class="n-content-date2">
                <p style="font-size: 30px;font-weight: bold;margin-top: 60px"><?php echo $info['today_fee']?></p>
                <p style="font-size: 14px">今日累计交易额</p>
            </li>
            <li class="n-content-date3">
                <p style="font-size: 30px;font-weight: bold;margin-top: 60px"><?php echo $info['total_user']?></p>
                <p style="font-size: 14px">系统总用户</p>
            </li>
            <li class="n-content-date4 marginR0">
                <p style="font-size: 30px;font-weight: bold;margin-top: 60px"><?php echo $info['total_fee']?></p>
                <p style="font-size: 14px">系统累计交易额</p>
            </li>
        </ul>
    </div>
</div>
</body>

<script>
        function shouquan(){
            alert('授权更新成功');
            return false;   
    /**        $.post("/admin/leftmenu/authorize",function(data){  
                if(data.code==0){           
                   alert('授权更新成功');
                   return false;    
                }else{
                   alert(data.msg);
                   return false;    
                    }   
            },'json');
            **/
            
        }
    </script>
</html>
